<div class="panel-body">
  <div class="tieude">Danh sách tỉnh - thành phố</div>
  <hr />
  <form class="form-horizontal" role="form" method="POST">
    <div class="form-group">
      <table class="table table-hover">
        <tr class="tr-first">
          <td>STT</td>
          <td>ID</td>
          <td>Tên tỉnh</td>
          <td>Thao tác</td>
        </tr>
        <?php
      $stt=$offset;
      foreach($list as $item){
          $stt++;
      ?>
        <tr>
          <td width="15%"><label><?php echo $stt; ?></label></td>
          <td width="15%"><label><?php echo $item['id']; ?></label></td>
          <td width="50%"><label><?php echo $item['ten_tinh']; ?></label></td>
          <td width="20%"><label><?php echo "<a class='btn btn-danger' href='index.php?controller=tinh&action=del&id="; echo $item['id']; echo "' onclick='return confirm_delete();'>Del</a>"; ?></label>
            <label><?php echo "<a class='btn btn-primary' href='index.php?controller=tinh&action=edit&id="; echo $item['id']; echo "'>Edit</a>"; ?></label></td>
        </tr>
        <?php } ?>
      </table>
      <div class="text-center">
        <nav> <?php echo $pagination; ?></nav>
      </div>
    </div>
  </form>
</div>
